package com.bajie.bjlisten.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BjUserRoleMapper {
    @Delete("delete from bj_user_role where user_id = #{userId}")
    int deleteUserRole(String userId);

    int saveUserRoles(@Param("user_id") String user_id, @Param("roleIds") List<String> roleIds);


}
